function UserProfile () {
	this.Save = function () {
		localStorage.m_name = this.m_name;
		localStorage.m_coin = this.m_coin;
		localStorage.m_chapter = this.m_chapter;
		localStorage.m_level = this.m_level;
		
		localStorage.m_musicVolume = this.m_musicVolume;
		localStorage.m_soundVolume = this.m_soundVolume;
		localStorage.m_graphicQuality = this.m_graphicQuality;
	}
	
	this.Load = function () {
		this.m_name = localStorage.m_name;
		this.m_coin = parseInt(localStorage.m_coin);
		this.m_chapter = parseInt(localStorage.m_chapter);
		this.m_level = parseInt(localStorage.m_level);
		
		this.m_musicVolume = Number(localStorage.m_musicVolume);
		this.m_soundVolume = Number(localStorage.m_soundVolume);
		this.m_graphicQuality = parseInt(localStorage.m_graphicQuality);
		
		if (this.m_name == null) {
			this.m_name = "";
			this.m_coin = 0;
			this.m_chapter = 1;
			this.m_level = 1;
			
			this.m_musicVolume = 0.5;
			this.m_soundVolume = 0.5;
			this.m_graphicQuality = 2;
		}
		
		this.Save();
	}
}